<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>??</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
	<s:form action="login" method="post" namespace="/">
	<s:textfield name="username" label="用户名："></s:textfield>
	<s:password name="password" label="密码："></s:password>
	<s:radio list="#{0:'男',1:'女'}" name="gender" label="性别：" value="0"></s:radio>
	<s:textfield name="age" label="年龄："></s:textfield>
	<s:select name="city" list="#{'cd':'成都','sh':'上海','bj':'北京','dy':'德阳'}" label="城市：" headerKey="-1" headerValue="请选择你的城市" emptyOption="true"></s:select>
	<s:checkboxlist name="hibbies" list="#{'code':'写代码','book':'看书','movie':'电影'} " ></s:checkboxlist>
	<s:checkbox name="married" label="是否已婚" value="true"></s:checkbox>
	<s:textarea name="description" rows="5" cols="20" label="自我介绍"></s:textarea>
	<s:file name="headjpg" label="头像"></s:file>
	<s:submit label="提交"></s:submit>
	<s:reset label="重置"></s:reset>
	</s:form>

</body>
</html>